<?php
include_once  'Grupo.php';
include_once  'PlanEstudio.php';
include_once  'Clase.php';
include_once  'Materia.php';
include_once  'Profesor.php';
include_once  'Alumno.php';
include_once  'Generacion.php';
include_once  'Aula.php';
$class = new $_POST['class']();
foreach( $_POST['atributos'] as $clave => $atributo) {
    $class->{"set".ucfirst($clave)}($atributo);
}
$class->save();
